//
//  UIView+CJ.h
//  CommonLibrary
//
//  Created by AlexiChen on 15/12/5.
//  Copyright © 2015年 AlexiChen. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (CJ)

- ( UIImage * _Nullable )captureImage;

- ( UIImage * _Nullable )captureImageAtRect:(CGRect)rect;

@end

@interface UIView (Frame)

@property (nonatomic, assign) CGFloat x;
@property (nonatomic, assign) CGFloat y;
@property (nonatomic, assign) CGFloat width;
@property (nonatomic, assign) CGFloat height;
@property (nonatomic, assign) CGPoint origin;
@property (nonatomic, assign) CGSize size;
@property (nonatomic, assign) CGFloat bottom;
@property (nonatomic, assign) CGFloat tail;
@property (nonatomic, assign) CGFloat middleX;
@property (nonatomic, assign) CGFloat middleY;

@end

UIKIT_EXTERN void runOnMain(void (^ _Nullable block)(void));
UIKIT_EXTERN void runOnGlobal(void (^ _Nullable block)(void));

